package com.mr.model;

import java.sql.Timestamp;

import com.mr.util.DateUtil;
public class Point extends BaseObject {
	private static final long serialVersionUID = 4347369938977669640L;
	private Long id;
	private Long memberid;
	private Long addmemberid;
	private Integer point;
	private String reason;
	private Timestamp addtime;
	public Point() {
		this.addtime = DateUtil.getCurTimestamp();
	}
	public Point(Long memberid, Long addmemberid, Integer point, String reason){
		this();
		this.memberid = memberid;
		this.addmemberid = addmemberid;
		this.point = point;
		this.reason = reason;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getMemberid() {
		return memberid;
	}
	public void setMemberid(Long memberid) {
		this.memberid = memberid;
	}
	public Integer getPoint() {
		return point;
	}
	public void setPoint(Integer point) {
		this.point = point;
	}
	public Timestamp getAddtime() {
		return addtime;
	}
	public void setAddtime(Timestamp addtime) {
		this.addtime = addtime;
	}
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	public boolean equals(Object o) {
		if (this == o)
			return true;
		if (!(o instanceof Point))
			return false;

		final Point temp = (Point) o;

		return !(this.getId() != null ? !(this.getId().equals(temp.getId()))
				: (temp.getId() != null));

	}

	public int hashCode() {
		return (this.getId() != null ? this.getId().hashCode() : 0);
	}
	public Long getAddmemberid() {
		return addmemberid;
	}
	public void setAddmemberid(Long addmemberid) {
		this.addmemberid = addmemberid;
	}
}
